package com.hs.reply.controller;


import com.hs.common.api.dto.ResultVo;
import com.hs.reply.service.IUnOrderInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.apiguardian.api.API;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Bai
 * @since 2022-07-26
 */
@RestController
@RequestMapping("/un-order-info")
@Api("订单申诉模块")
public class UnOrderInfoController {

    @Autowired
    private IUnOrderInfoService unOrderInfoService;

    /**
     * 创建申诉订单信息
     * @param orderId
     * @param content
     * @return
     */
    @ApiOperation("创建申诉订单信息")
    @PostMapping("/create")
    public ResultVo createUnOrderInfo(Integer orderId,String content){
        return unOrderInfoService.createUnOrderInfo(orderId,content);
    }

    @ApiOperation("处理申诉订单信息")
    @PostMapping("/handle")
    public ResultVo handleUnOrderInfo(Integer orderId,String note){
        return unOrderInfoService.handleUnOrderInfo(orderId,note);
    }

}

